package org.hibernate.validator;


import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.hibernate.validator.ValidatorClass;


@Documented
@ValidatorClass(UnicityValidator.class)
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Unique {

	String message() default "{validator.unique}";
	boolean nullabled() default true;
	boolean trimBeforeValidate() default true;
	
}
